import http from '@/http/index'


export default{
    register:{
        name:"注册用户",
        url:"/api/user/register",
        call:async function(params:any={}){
            return await http.post(this.url,params)
        }
    },
    login:{
        name:"用户登录",
        url:"/api/user/login",
        call:async function(params:any={}){
            return await http.post(this.url,params)
        }
    },
    getPermission:{
        name:"获取用户权限",
        url:"/api/user/permission",
        call: async function(params:any={}){
            return await http.get(this.url,params)
        }
    },
	list: {
		name: '用户登录',
		url: '/api/user/list',
		call: async function (params: any = {}) {
			return await http.get(this.url, params);
		},
	},
	editrole: {
		name: '编辑用户角色信息',
		url: '/api/user/editrole',
		call: async function (params: any = {}) {
			return await http.post(this.url, params);
		},
	},
}